package com.demo.designMode.danli;

public class Minister {

    /**
     * @param args
     */
    public static void main(String[] args) {
        Emperor emperor1 = Emperor.getInstance();
        emperor1.emperorInfo(); //第一天见的皇帝叫什么名字呢？
        Emperor emperor2 = Emperor.getInstance();
        Emperor.emperorInfo();
        Emperor emperor3 = Emperor.getInstance();
        emperor2.emperorInfo();
//三天见的皇帝都是同一个人，荣幸吧！
    }
}
